package cn.well.cloud.sys.core.exception;

import cn.well.cloud.sys.core.exception.enums.TipsExceptionEnum;


/**
 * 封装提示的异常，拦截该异常不打印错误详情
 * Created by wison on 2019年8月27日.
 *
 */
public class TipsException extends RuntimeException {

    private Integer code;

    private String message;

    public TipsException(TipsExceptionEnum tipsExceptionEnum) {
        this.code = tipsExceptionEnum.getCode();
        this.message = tipsExceptionEnum.getMessage();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
